#!/bin/sh
ROOTDIR=/Library/Frameworks/Erlang.framework/Versions/Current/lib/erlang
BINDIR=$ROOTDIR/erts-5.6.4/bin
EMU=beam
PROGNAME=`echo $0 | sed 's/.*\///'`
export EMU
export ROOTDIR
export BINDIR
export PROGNAME
ERL_LIBS=/Library/Erlang/lib
if [ -d $HOME/Library/Erlang/lib ]; then
  ERL_LIBS=$HOME/Library/Erlang/lib:$ERL_LIBS
fi
export ERL_LIBS
exec $BINDIR/erlexec ${1+"$@"}